import Login from "../page/Login"
import LayoutPage from "../page/LayoutPage"
import Message from "../page/Message/Message"
import Home from "../page/Home/Home"
import TagMange from "../page/Set/TagMange"
import RoleMange from "../page/Set/RoleMange"

//服务管理
import ServerIndex from "../page/Service/ServerIndex"
import PendingService from "../page/Service/PendingService"
import RecordService from "../page/Service/RecordService"
//设置
import SetIndex from "../page/Set/SetIndex"
import NewsMange from "../page/Set/NewsMange"
//数据统计
import ContractIndex from '../page/Contract/ContractIndex'
import ServiceIndex from "../page/Service/ServiceIndex"
import PendingContrant from "../page/Contract/PendingContrant"
import RecordContrant from "../page/Contract/RecordContrant"
import StatisticsIndex from "../page/Statistics/StatisticsIndex"
import ContractPerStatistics from "../page/Statistics/ContractPerStatistics"
import DataOverview from "../page/Statistics/DataOverview"
import ResidentAbHealthStatistics from "../page/Statistics/ResidentAbHealthStatistics"
import ResidentAgeStatistics from "../page/Statistics/ResidentAgeStatistics"
import ResidentEducationStatistics from "../page/Statistics/ResidentEducationStatistics"
import ResidentSexStatistics from "../page/Statistics/ResidentSexStatistics"
import ResidentTagStatistics from "../page/Statistics/ResidentTagStatistics"
import ServicePerStatistics from "../page/Statistics/ServicePerStatistics"

// 资料管理
import InfoMation from "../page/Information/InfoMation"
import Organ from "../page/Information/Organ" //机构管理
import Team from "../page/Information/Team" //团队管理
import Doctor from "../page/Information/Doctor" //医生管理
import ServicePack  from "../page/Information/ServicePack"  //服务包管理
import ServiceItems  from "../page/Information/ServiceItems" //服务项目管理
import Goals from "../page/Information/Goals" //业绩目标管理


const routers:any = [
    {
        path: '/login',
        element: Login,
        title: '登录'
    },
    {
        path: '/home',
        element: LayoutPage,
        children: [
            {
                path: '',
                element: Home,
                title: '首页'
            },
            {
                path: '/home',
                element: Home,
                title: '首页'
            },
            {
                path:'/home/contractIndex',
                element:ContractIndex,
                title:'签约管理',
                children:[
                    {
                        path:'/home/contractIndex/pendingContrant',
                        element:PendingContrant,
                        title:'待处理签约',
                    },
                    {
                        path:'/home/contractIndex/recordContrant',
                        element:RecordContrant,
                        title:'签约记录',
                    }
                ]
            },
            {
                path:'/home/serviceIndex',
                element:ServiceIndex,
                title:'服务管理',
                children:[
                    {
                        path:'/home/serviceIndex/pendingService',
                        element:PendingService,
                        title:'待处理服务',
                    },
                    {
                        path:'/home/serviceIndex/recordService',
                        element:RecordService,
                        title:'服务记录',
                    },
                ]
            },
            {
                path:'/home/message',
                element:Message,
                title:'信息管理'
            },
            {
                path:'/home/infoMation',
                element:InfoMation,
                title:'资料管理',
                children:[
                    {
                        path:'/home/infoMation/organ',
                        element:Organ,
                        title:'机构管理'
                    },
                    {
                        path:'/home/infoMation/team',
                        element:Team,
                        title:'团队管理'
                    },
                    {
                        path:'/home/infoMation/doctor',
                        element:Doctor,
                        title:'医生管理'
                    },
                    {
                        path:'/home/infoMation/servicePack',
                        element:ServicePack,
                        title:'服务包管理'
                    },
                    {
                        path:'/home/infoMation/serviceItems',
                        element:ServiceItems,
                        title:'服务项目管理'
                    },
                    {
                        path:'/home/infoMation/goals',
                        element:Goals,
                        title:'业绩目标管理'
                    },

                ]
            },
            {
                path:'/home/statistics',
                element:StatisticsIndex,
                title:'统计数据',
                children:[
                    {
                        path:'/home/statistics/dataOverview',
                        element:DataOverview,
                        title:'数据概况'
                    },
                    {
                        path:'/home/statistics/contractPerStatistics',
                        element:ContractPerStatistics,
                        title:'签约业绩统计'
                    },
                    {
                        path:'/home/statistics/servicePerStatistics',
                        element:ServicePerStatistics,
                        title:'服务业绩统计'
                    },
                    {
                        path:'/home/statistics/residentAbHealthStatistics',
                        element:ResidentAbHealthStatistics,
                        title:'居民健康异常统计'
                    },
                    {
                        path:'/home/statistics/residentTagStatistics',
                        element:ResidentTagStatistics,
                        title:'居民标签统计'
                    },
                    {
                        path:'/home/statistics/residentAgeStatistics',
                        element:ResidentAgeStatistics,
                        title:'居民年龄统计'
                    },
                    {
                        path:'/home/statistics/residentEducationStatistics',
                        element:ResidentEducationStatistics,
                        title:'居民学历统计'
                    },
                    {
                        path:'/home/statistics/ResidentSexStatistics',
                        element:ResidentSexStatistics,
                        title:'居民性别统计'
                    }
                ]
            },
            {
                path:'/home/set',
                element:SetIndex,
                title:'设置',
                children:[
                    {
                        path:'/home/set/TagMange',
                        element:TagMange,
                        title:'标签管理'
                    },
                    {path:'/home/set/RoleMange',
                    element:RoleMange,
                    title:'角色管理'
                    },
                    {
                        path: '/home/set/newsmessage',
                        element: NewsMange,
                        title: '资讯管理'
                    },
                ]
            },
            {
                path: '/home/recordService',
                element: RecordService,
                title: '居民管理'
            }
        ]
    }
]
export default routers;